package com.sugar.MultiThread.a03threadcase3;

import java.util.concurrent.Callable;

/**
 * @author felix
 * @date 2025/2/26 10:22
 */
public class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        for (int i = 0; i < 100; i++) {
            sum+=i;
        }
        return sum;
    }
}
